﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wFrmLogin.aspx.cs" Inherits="Crosland.Automotriz.Web.Seguridad.Login" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Automotriz - Login</title>
    <style type="text/css">
        .style1
        {
            float: right;
            margin-left: 10px;
            height: 25px;
            line-height: 25px;
            font-size: small;
        }
    </style>
</head>
 <script type="text/javascript">
    // <![CDATA[

     function ShowPopupLogin() {
         PopupLogin.Show();
     }

      function ShowError() {
          popupCamposVacios.Show();
      }

    // ]]> 
    </script>
<body>
    <form id="formLogin" runat="server">
 
        <div class="top-content">           
          <div class="top-sistema">
                <div class="top-item"><img src="../images/flecha.gif" alt="Usuario"/></div> 
                <div class="top-item">Sistema:</div>            
                <div class="top-item">Automotriz</div> 
                <div class="top-item-r"><img src="../images/logout.gif" alt="Logout"/></div>          
                <div class="style1">Acceso al sistema</div>                
          </div>
          
          <div id="menu">
              <ul style=" float:right; margin-right:15px">
                <li>
                    <asp:LinkButton ID="lblRecuperarClave" runat="server" 
                        onclick="lblRecuperarClave_Click"><span><strong>Recuperar Clave &raquo;</strong></span>
                        </asp:LinkButton>
                </li>
              </ul>
          </div>  
            
         </div>
         <div style="clear:both" >
         
         
        



    <script type="text/javascript">
    // <![CDATA[

        function ShowPopupLogin() {
                PopupLogin.Show();

            }


    // ]]> 
    </script>










         <dx:ASPxPopupControl ID="PopupLogin" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupLogin" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    

                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                
                    

                    <loadingpanelimage url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    

                    </loadingpanelimage>
                    

                    <HeaderStyle>

                    <paddings paddingleft="7px" />
                    

                    </HeaderStyle>
                    

                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    

                    <contentcollection>
                    
                    <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" 
                        SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table align="center">
                           
                                <tr>
                                    
                                  
                                        <td align="center" style="width:100%;">
                                          <dx:ASPxLabel ID="lblMsj" runat="server">
                                            </dx:ASPxLabel>
                                        </td>
                                    
                                </tr>
                                </table>
                           
                        <table width="100%">
                        <tr>
                        <td align="center">
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<dx:ASPxButton ID="ASPxButton4" runat="server" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" Height="30px" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="100px">
                                <ClientSideEvents Click="function(s, e) {
	PopupLogin.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        
                            </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </panelcollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
                    
                    </contentcollection>

                </dx:ASPxPopupControl>
         
         
         
         
         
         
         
         </div>
         <div class="main-login">
            
            <div class="login-content">
                
               <div class ="login-logo">
                    <table align="center">
                    <tr>
                    <td align="center">
                    <img src="../Images/logo.png" alt="logo" />
                    </td>
                    </tr>
                    </table>
               </div> 
                <br />
               <br />
               <asp:Panel ID="pnlMensaje" runat="server" CssClass="content-message">
                    <asp:Label ID="lblMensaje" runat="server" Text="Ingrese su usuario y clave"></asp:Label>
               </asp:Panel>

               <asp:Panel runat="server" ID="pnlLogin">
                   <table cellpadding="0" cellspacing="0" border="0" class = "tb-login">
                        <tr>
                            <td>Usuario:</td>
                            <td>
                                <dx:ASPxTextBox ID="txtUsuario" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Width="130px">
                                    <Paddings PaddingLeft="5px" />
                                </dx:ASPxTextBox>
                            </td>
                            <td>Clave:</td>
                            <td>
                                <dx:ASPxTextBox ID="txtPassword" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Password="True" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Width="130px">
                                    <Paddings PaddingLeft="5px" />
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnIngresar" runat="server" Text="Ingresar" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" onclick="btnIngresar_Click1" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Width="100px">
                                    <Image Url="~/Images/candado.gif">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                        </tr>
                   </table>              
                </asp:Panel>
                <asp:Panel runat="server" ID="pnlRecuperar" Visible="false">
                   <table cellpadding="0" cellspacing="0" border="0" class = "tb-login">
                        <tr>
                            <td>Email:</td>
                            <td>
                                <dx:ASPxTextBox ID="txtEmail" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Height="30px" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                    <Paddings PaddingLeft="5px" />
                                </dx:ASPxTextBox>
                                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                                Display="Dynamic" ErrorMessage="Email inválido" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                            </asp:RegularExpressionValidator>
                            </td>                            
                            <td>
                                <dx:ASPxButton ID="btnRecuperar" runat="server" Text="Recuperar" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" onclick="btnRecuperar_Click1" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Width="100px" Height="30px">
                                    <Image Url="~/Images/email2.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" onclick="btnCancelar_Click1" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Width="100px" Height="30px">
                                    <Image Url="~/Images/logout.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                           
                        </tr>
                   </table>  
                </asp:Panel>
            </div>
        </div>
        <div style="clear:both;"></div>
        <div class="footer-content" style="position:absolute; bottom:0">
             <p style="float:left"><a>2013 Grupo Crosland, Todos los Derechos Reservados</a></p>
             <p style="float:right"><a>Area de Sistemas - BI</a></p>
        </div>  
 
    </form>
</body>
</html>
